package com.med.meddataintegrator.common.basic.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    OPERATION_SUCCESS(200, "操作成功"),
    USERNAME_OR_PWD_ERROR(4000, "用户名或密码错误"),
    INVALID_CREDENTIALS(4001, "用户名或密码不能为空"),
    TOKEN_EXPIRE(4002, "登录过期"),
    USERNAME_OR_PASSWORD_IS_NULL(4003, "用户名或密码为空"),
    TOKEN_NULL(4004, "token为空"),
    NO_AUTH(4005, "权限不足"),
    UNAUTHORIZED(4006, "未登录"),
    USER_EXIST(4007, "用户已经存在"),
    OPERATION_FAILED(5001, "操作失败"),
    VALIDATE_ERROR(5002, "请求参数错误");
    private Integer code;
    private String msg;
}
